<div id="content">
    <div class="container-fluid">
    <hr>
    <div class="row-fluid">
      <div class="span12">
          <div class="controls controls-row">
              <form name="userCond" method="post">
                  <input style="display:none;" type="text" value="{:U('User/index')}" name="time" />
                  <input name="startTime" readonly="readonly" type="text" data-date-format="mm-dd-yyyy" class="datepicker span2" placeholder="时间范围(起)" onclick="subTime()">
                  <input name="endTime" readonly="readonly" type="text" data-date-format="mm-dd-yyyy" class="datepicker span2" placeholder="时间范围(止)" onclick="subTime()">
              </form>
          </div>
          <script>
              function subTime()
              {
                  var startTime=$("input[name='startTime']").val();
                  var endTime=$("input[name='endTime']").val();
                  if(startTime!=""&&endTime!="")
                  {
                      var url=$("input[name='time']").val();
                      document.userCond.action=url;
                      userCond.submit();
                  }
              }
          </script>
       <div class="widget-box">
          <div class="widget-title"><span class="icon">
            <input type="checkbox" id="title-checkbox" name="title-checkbox" />
            </span>
            <h5>用户信息列表</h5>
          </div>
          <div class="widget-content nopadding">
            <table class="table table-bordered table-striped with-check">
                  <thead>
                        <tr>
                            <th><i class="icon-resize-vertical"></i></th>
                            <th>ID</th>
                            <th>昵称</th>
                            <th>性别</th>
                            <th>注册时间</th>
                            <th>电话</th>
                            <th>openid</th>
                        </tr>
                  </thead>

                <volist name="data" id="vo">
                    <tbody>
                        <tr>
                            <td><input type="checkbox" /></td>
                            <td>{$vo.id}</td>
                            <td class="center">{$vo.nick}</td>
                            <td>
                                <php>
                                    if($vo['sex']==1)
                                    {
                                    echo "男";
                                    }else{
                                    echo "女";
                                    }
                                </php>
                            </td>
                            <td style="text-align:center;"><php>echo date("Y-m-d H:i:s",$vo['reg_time'])</php></td>
                            <td>{$vo.tel}</td>
                            <td>{$vo.openid}</td>
                        </tr>
                    </tbody>
                </volist>
            </table>

          </div>
        </div>
         {$pages}
      </div>
    </div>
  </div>
</div>
<script src="__PUBLIC__js/fullcalendar.min.js"></script>
<script src="__PUBLIC__js/matrix.calendar.js"></script>
<script src="__PUBLIC__js/matrix.tables.js"></script>